home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 September / Software of the Month Club 1996 September.iso / mac / Software Research Institute-SRI / Business / Alpha ƒ / Help / Alpha Commands next >
Encoding:
Text File  |  1996-01-06  |  33.3 KB  |  651 lines  |  [TEXT/ALFA]

  1. ==============================================================================
  2. = Alpha Commands
  3. ==============================================================================
  4.  
  5. In this list of routines, text between '<' and '>' is a placeholder for a 
  6. required parameter, text between '[' and ']' is a placeholder for an 
  7. optional parameter, and the '|' signifies a choice of two or more 
  8. alternatives.  A '+' signifies that the previous symbol can be present one 
  9. or more times, while a '*" means zero or more times.  Some commands have no 
  10. parameters, and are only expected to be called interactively.
  11.  
  12.  
  13.  
  14. The following are Alpha-specific tcl routines:
  15.  
  16. Ñ abortEm - aborts whatever is currently happening
  17. Ñ addMenuItem [-m] [-l <meta-characters>] <menu name> <item name> - Convert
  18.   item to menu form and add to specified menu. If '-m' specified, menu 
  19.   form conversion not done. The '-l' option allows you to use menu meta 
  20.   characters as text of menu items. If the '-l' option is used, the 
  21.   <meta-characters> string is interpreted for menu item attributes, and 
  22.   meta-characters in <item name> are included in the menu item text 
  23.   literally. For example: 
  24.       addMenuItem -m -l "/B" "Hello/C" 
  25.   would appear as the text "Hello/C" in the menu, and have "B" as its 
  26.   command equivalent.
  27. Ñ addDef <var> <val> - Permanently save an association between the var 
  28.   'var' and 'val'. 'addDef' and 'addArrDef' are now the sanctioned way to 
  29.   save values between sessions. Also see 'removeDef' and 'removeArrDef'.
  30. Ñ addArrDef <var> <field> <val> - Permanently save an association between 
  31.   the var var(field) and 'val'.
  32. Ñ AEBuild [<flags>] <app (name|creator)> <aesuite> <aeevent> [<event parameters>]*  -
  33.   Build and send an apple-event. 'AEBuild' is apple's code of the same 
  34.   name. Each "event parameter" is two parameters, a parameter type and 
  35.   the data for the parameter. See the AEBuild doc for more details, 
  36.   :Tcl:SystemCode:think.tcl for examples. The flags are '-r' (wait for reply), 
  37.   '-q' (queue reply, in which case 'handleReply' (in appleEvents.tcl) is 
  38.   called with the reply as a parameter, and '-t <timeout>' specifies the 
  39.   timeout in ticks.
  40. Ñ alertnote message_string
  41.   This command will display message_string in a standard Macintosh alert box.
  42. Ñ alphaHelp - display Alpha help.
  43. Ñ ascii (see bindings).
  44. Ñ askyesno [-c] prompt
  45.   This command will display a Macintosh alert box with 'prompt' displayed
  46.   with the push buttons Yes and No. The command will return the 
  47.   string "yes" or "no". The '-c' flag specifies that a cancel button be 
  48.   used as well.
  49. Ñ backColor - set background color
  50. Ñ backSpace - delete selection, or a single char if no selection.
  51. Ñ backwardChar - moves insertion one char back
  52. Ñ backwardCharSelect - extends selection one char back
  53. Ñ backwardDeleteWord - deletes previous word
  54. Ñ backwardWord - moves insertion one char back
  55. Ñ balance - selects smallest set of parens, braces, or 
  56.   brackets that encloses the current selection
  57. Ñ beep
  58. Ñ beginningBufferSelect - extend selection to the 
  59.   beginning of the buffer
  60. Ñ beginningLineSelect - extend selection to the 
  61.   beginning of the line
  62. Ñ beginningOfBuffer - move insertion to the beginning 
  63.   of the buffer
  64. Ñ beginningOfLine - move insertion to the beginning of 
  65.   the line
  66. Ñ bind  (see bindings)
  67. Ñ blink <pos> - blink cursor at 'pos'
  68. Ñ breakIntoLines <string> - return 'string' with 
  69.   carriage returns and spaces inserted to satisfy 
  70.   'leftFillColumn' and 'fillColumn' variables.
  71. Ñ bringToFront <winName> - Bring named window to front.
  72. Ñ buttonAlert <prompt> [<button>╔] - Create a dialog w/ the specified 
  73.   buttons, returning the one selected.
  74. Ñ capitalizeRegion - capitalize all words in selected 
  75.   region 
  76. Ñ capitalizeWord - capitalize word
  77. Ñ cd [directory]
  78.   This command will set the current working directory to "directory". The directory 
  79.   argument may or may not end with a colon. The working directory is the directory 
  80.   in which file names that contain no colons (folders) will be located with file related 
  81.   commands. No argument means Alpha's home directory.
  82. Ñ centerRedraw - redraw window with current line in 
  83.   the middle.
  84. Ñ clear - clear selected text
  85. Ñ closeAll - close all windows
  86. Ñ colors <fore red> <fore green> <fore blue> <back red> <back green> <back blue>
  87. Ñ colorTriple [<prompt>] [<red> <green> <blue>] - Prompts user to choose 
  88.   color. If specified, the input RGB value is used as the initial color on 
  89.   the colorpicker.
  90. Ñ copy - copy region
  91. Ñ cp <fromName>+ <toName>
  92.   This command will copy the file fromName and name the new file toName, 
  93.   overwriting any existing file. This command copies both data forks, and 
  94.   the Finder information. 
  95. Ñ createTagFile - searches all files in current file set 
  96.   and saves the locations of any function declarations
  97.   in a file called 'cTAGS'.
  98. Ñ createTMark <name> <pos> - create a temporary 'mark' 
  99.   at location 'pos'. 
  100. Ñ currentPosition - displays current and total bytes.
  101. Ñ cut - deletes and saves region
  102. Ñ deleteChar - delete char AFTER cursor
  103. Ñ deleteMenuItem [-m] <menu name> <item name> - Convert item to menu form 
  104.   and delete from specified menu. If '-m' specified, menu form conversion 
  105.   not done. 
  106. Ñ deleteModeBindings <mode> - Delete all bindings for specified mode.
  107. Ñ deleteSelection - delete current position, don't save
  108. Ñ deleteWord - delete word after cursor
  109. Ñ describeBinding - display the binding of the next typed key sequence. 
  110. Ñ deleteText <pos1> <pos2> - remove text between 'pos1' 
  111.   and 'pos2'
  112. Ñ display [-w <win>] <pos> - move pos's line to top of screen.
  113. Ñ displayMode <mode> - Up to four characters of the 'mode' string are 
  114.   displayed in the status line at the bottom of a window.
  115. Ñ dosc [<-c 'sign' | -n appName>] [-k 'clas'] [-e 'evnt'] <-s string | -f fileName> [<-t timeout|-r>]
  116.   Send an AppleEvent, by default class 'misc', event 'dosc'.
  117.    -c 'sign' 
  118.            "sign" is a four-letter creator signature of a running application.
  119.    -n appName
  120.            "appName" is the name of a running application.
  121.    -k 'clas'
  122.            "clas" is a four-letter event class.
  123.    -e 'evnt'
  124.            "evnt" is a four-letter event class.
  125.    -s string
  126.            "string" is the text of a script to send to the other app.
  127.    -f fileName
  128.            "fileName" is the complete or relative pathname of a file the other 
  129.            application should execute.
  130.    -t timeout
  131.            "timeout" is the number of ticks Alpha should wait for a response. A 
  132.            timeout of "0" means wait forever.
  133.    -r
  134.            Do not wait for reply.
  135.    -q
  136.            Queue reply.
  137.            
  138.    If neither of the '-c' and '-n' options is chosen, the PPC Browser is 
  139.    used. Either '-s' or '-f' must be chosen. Thus, you can have "Alpha 
  140.    5.02" and "Alpha 5.02 Copy" sending Apple events to each other, or they 
  141.    can send events to a remote server such as Apple's ToolServer. 
  142.    "$HOME:Tcl:UserCode:createStuffitArchive.tcl" contains examples of 
  143.    controlling Stuffit Deluxe via this command.
  144. Ñ downcaseRegion - changes all uppercase letters to 
  145.   lowercase in current region
  146. Ñ downcaseWord - changes all uppercase letters to 
  147.   lowercase in current word
  148. Ñ dumpColors - dump current foreground and background
  149.   colors into the current buffer in Alpha-readable
  150.   format.
  151. Ñ dumpMacro - prompts for a name and then dumps a tcl proc representation 
  152.   of the current keyboard macro into the current window.
  153. Ñ echo <string>* - echo the strings (used 
  154.   in shells).
  155. Ñ edit [-r] [-m] [-w] [-g <t> <t> <w> <h>] <name> - Open a file in a new window. 
  156.   '-r' means open the file read-only. '-m' means omit the function titlebar 
  157.   menu and present only the marks titlebar menu, which is labeled with the 
  158.   contents of 'markLabel'. The '-g' option allows left and top coords to 
  159.   be specified, plus width, and height. All or none. '-w' allows you to
  160.   bypass the "Wrap" dialog for files with long rows.
  161. Ñ enableMenuItem <menuName> <item text> <on|off> - Either enable or 
  162.   disable the menu item of user menu 'menuName' that has text '<item 
  163.   text>'. Note that unless the menu is not only created, but also already
  164.   inserted, this command has no effect. 
  165. Ñ endBufferSelect - extend selection to the end of the 
  166.   buffer
  167. Ñ endKeyboardMacro - stop recording keyboard macro
  168. Ñ endLineSelect - extend selection to the end of line
  169. Ñ endOfBuffer - move insertion to the end of the buffer
  170. Ñ endOfLine - move insertion to the end of the line
  171. Ñ enterSelection - use current selection for future searches.
  172. Ñ eventHandler [class] [event] [proc] - Register 'proc' to handle the class 
  173.   and event specified. Class and event are each 4 char args. 'proc' takes 
  174.   a single argument that specifies the incoming event according to the 
  175.   syntax here. There is currently no provision for a reply.
  176. Ñ exchangePointAndMark - exchange the current 'mark' 
  177.   w/ the current insertion point
  178. Ñ execute - prompt user for a function or macro. The 
  179.   tab key acts as a "completion" command.
  180. Ñ executeKeyboardMacro - execute the current keyboard 
  181.   macro
  182. Ñ fileInfo - prompts for a file, and displays type, 
  183.   creator, sizes of both data and resource forks, last
  184.   modification time, and creation time
  185. Ñ fileRemove - prompts for a file, and removes it
  186. Ñ find - bring up the find dialog
  187. Ñ findFile - open a file in a new window
  188. Ñ findInNextFile - search next file.
  189. Ñ findTag - prompt user for a function name and attempt 
  190.   to use the file 'cTAGS' to locate the function's 
  191.   definition
  192. Ñ forwardChar - move insertion one character forward
  193. Ñ forwardCharSelect - extend selection one character 
  194.   forward
  195. Ñ forwardWord - move insertion one word forward
  196. Ñ freeMem - give a rough approximation of the current 
  197.   memory reserves of ALPHA
  198. Ñ get_directory [-p <prompt>]
  199.   This command will display a standard Macintosh file dialog and request the user 
  200.   select a folder. The command will return the selected folder's full path name, or an 
  201.   empty string if the Cancel button was selected.
  202. Ñ getAscii - displays the ASCII code for character at 
  203.   current insertion point
  204. Ñ getChar - waits for a keystroke, returns ascii.
  205. Ñ getColors - returns list of colors/hypertext for current document. 
  206.   Format is list of lists, each sublist consisting of file offset, color 
  207.   index, and possibly a hypertext command.
  208. Ñ getfile <prompt>
  209.   This command will display an SFGetFile() and return the full path name of the 
  210.   selected file, or an empty string if CANCEL button was selected.
  211. Ñ getFileInfo <file> <arr> - Given a file name, creates an array called 
  212.   'arr' in the current context, containing fields 'created', 'creator', 
  213.   'modified', 'type', 'datalen', and 'resourcelen'. 'created' and 
  214.   'modified' are in a form suitable for the command 'mtime'.
  215. Ñ getGeometry [win] - return a TCL list containing the left 
  216.   edge of the current window, the top, the width, and height.
  217. Ñ getline <prompt> <default>
  218.   This command will display a Macintosh alert box with prompt displayed, a 
  219.   text edit field with default initially in the field, and with the push 
  220.   buttons OK, Cancel.. The command will return the text entered into the 
  221.   text edit field by the user, or an empty string if the user selected the 
  222.   Cancel button. 
  223. Ñ getMainDevice - return a list containing the left, top, right, and 
  224.   bottom of the rectangle defining the main device.
  225. Ñ getMark - return the current mark.
  226. Ñ getNamedMarks [-w <win>] [-n] - 
  227.   return list of all permanent marks in open files. Each
  228.   element of a list describes one mark as a sublist of the mark's name, 
  229.   the complete pathname of the mark's file, the position of the first 
  230.   character in the first line displayed, the current position, and the 
  231.   end of the selection if text is hilited, or the current position again 
  232.   if there is no hilited section. '-w' allows window name to be applied 
  233.   as filter, '-n' means only names will be returned.
  234. Ñ getPathName - prompt the user with an SFGetFile dialog and return 
  235.   complete pathname.
  236. Ñ getPos [-w <win>] - return the current insertion point
  237. Ñ getScrap - returns system TEXT scrap.
  238. Ñ getSelect - return the currently selected text, if 
  239.   any.
  240. Ñ getText [-w <win>] <pos1> <pos2> - return the text between 'pos1' 
  241.   and 'pos2'. '-w' can be used to specify a window.
  242. Ñ getTMarks - Return a list of temporary marks. Each item of the returned 
  243.   list is a sublist containing the mark name, the complete pathname of the 
  244.   mark, and the start and finish of the selection named by the mark. The 
  245.   following is an example of the result: 
  246.  
  247.     {{temp1 External:file.c 1312 1315} {temp2 Internal:it.h 111 111}} 
  248.  
  249. Ñ getWinInfo [-w <win>] <arr> - Creates an array in current context 
  250.   containing info about either the current or a specified window. Array 
  251.   has fields 'state', 'platform', 'read-only', 'tabsize', 'split', 
  252.   'linesdisp' (num lines that can be seen in the window) and 'dirty'.
  253. Ñ glob [-i] [-t <TYPE>] [-c <CRTR>]
  254.   The original glob provided by the UNIX version of tcl was not quite 
  255.   adequate for the more complex Macintosh file system. Issues such as 
  256.   invisible file handling, Finder type and creator filtering, and space 
  257.   handling in file names. Release 6 of tcl has dealt with the original 
  258.   problem with spaces in filenames, but the following options are provided 
  259.   to deal with additional Macintosh issues. 
  260.  
  261. Anyway, the new glob now takes several options. They are:
  262.     -i    This option causes glob to list invisible files also.
  263.     -t TYPE    This option causes glob to only list file with the 
  264.         indicated Finder file typeTYPE. This option may be 
  265.         used with the -c option.
  266.     -c CRTR    This option causes glob to only list file with the 
  267.         indicated Finder file creatorCRTR. This option may 
  268.         be used with the -t option.
  269.         Also note that the original glob would skip dot files
  270.         (i.e., file names the begin with a period) 
  271.         in the listing, unless the pattern began with a period.
  272.         Tickle extends this concept one step further on the
  273.         Macintosh, and skips spot files (i.e., file names that 
  274.         begin with 'Ñ'), unless the pattern starts with a spot.
  275. Ñ goto <pos> - goto the position 'pos'.
  276. Ñ gotoMark - goto named mark, use 'mark' in macros.
  277. Ñ gotoTMark <name> - goto the temporary mark 'name'.
  278. Ñ icon [-f <winName>] [-c|-o|-t|-q] [-g <h> <v>] - Having to do w/ 
  279.   iconifying windows. '-c' means close (iconify) window, '-o' open, '-t' 
  280.   toggle open/close, '-q' returns either a '1' for an iconified window or a 
  281.   '0' for an uniconified window, and '-g' moves the icon to horizontal 
  282.   position <h> and vertical position 'v'. Options are executed as they 
  283.   are parsed, so the '-f' option, if present, should always be first. 
  284. Ñ icURL <URL> - passes arg to Internet Config, if present. Error if not 
  285.   present. 
  286. Ñ icGetPref [<-t <type>] <pref name> - Gets preference from 
  287.   Internet Config. '-t' allows type to be set, '0' returns a string 
  288.   (default), '1' returns a path name, commonly used for helper apps. A 
  289.   <pref name> of 'all' returns all valid preferences.
  290. Ñ icOpen - Opens Internet Config
  291. Ñ insertAscii - prompts for an ASCII code and inserts
  292.   into text.
  293. Ñ insertColorEscape <pos> <color ind> [hypertext func] - Create a color 
  294.   or style "point" for documentation purposes. Look at the file 
  295.   "docColors.tcl" for examples. The hypertext func is only used when the 
  296.   "point" is underline. See 'getColors' for info about the current file.
  297. Ñ insertFile - prompts for a file name and inserts the
  298.   corresponding file into the current window. Not
  299.   undoable.
  300. Ñ insertMenu <name> - insert the previously created user menu 'name' into 
  301.   the menuBar. 
  302. Ñ insertPathName - present the user w/ a SFGetFIle dialog 
  303.   and paste the complete path-name of the chosen file
  304.   into the current window
  305. Ñ insertText [-w <win name>] <text>* - Insert 'text' at the current 
  306.   insertion point.
  307. Ñ insertToTop - make the line that the insertion point 
  308.   is on the first line shown, and display the current 
  309.   line number along w/ the total number of lines in file
  310. Ñ isearch - incremental search: searches w/o a dialog,
  311.   searches as you type the search pattern. Does not do
  312.   regular expression searches. 'matchWords' 
  313.   automatically set to false.
  314. Ñ iterationCount - allows actions to be repeated many times. "control-u 44 
  315.   =" inserts 44 '='s into current window.  Also can be used to execute any 
  316.   function or macro (including the keyboard macro) many times.  Defaults to 
  317.   4.
  318. Ñ jumpToRegister - prompts for a single char, and then jumpts to 
  319.   temporary mark of that name created by 'pointToRegister'.
  320. Ñ keyAscii - insert ascii representation (in decimal)
  321.   of the keydown event, plus a modifier string, if 
  322.   necessary.
  323. Ñ keyCode - insert the key code along w/ a string 
  324.   representing and modifiers into the current window.
  325.   Can be used to create bindings in 'Alphabits'.
  326. Ñ killLine - kill text from insertion point to the end 
  327.   of the line. If the line has no text, delete the line 
  328.   and move succeeding lines up one.
  329. Ñ killWindow - kill current window
  330. Ñ largestPrefix <list> - Returns the longest prefix contained in all 
  331.   strings of 'list'.
  332. Ñ launch -f <name> - launch the named app into the background. Note that 
  333.   for some yet unexplained reason, some applications (MicroSoft Word) 
  334.   won't launch completely in the background. 'launch'ing such 
  335.   applications won't insert the application into any system menu that 
  336.   specifies running applications (although "About the Finder..." will 
  337.   list it. The only way to get to such an app is through Alpha's 
  338.   'switchTo', after which the application will finish launching. The '-f' 
  339.   option gets around this by launching the application in the foreground 
  340.   instead.
  341. Ñ lineStart <pos> - return the position of the start of
  342.   the line 'pos' is on.
  343. Ñ listBindings - list all current bindings.
  344. Ñ listpick [-p <prompt>] [-l] [-L <def list>] <list>
  345.   This command will display a dialog with the list displayed in a List Manager 
  346.   list. If the user presses the Cancel button, an empty string is returned. If 
  347.   the user selects the Open button, or double clicks an item in the list, that 
  348.   item will be returned. If '-l' is specified, than the return is a list of 
  349.   items.
  350. Ñ load - loads hilited text, or entire window if 
  351.   nothing is hilited. 'load'ing means that whatever 
  352.   bindings or macro definitions are present in the 
  353.   loaded text take effect
  354. Ñ lookAt [-w <name>] <pos> - return the 'pos'th character of the 
  355.   current file, or the file named by <name> if the '-w' option is specified.
  356. Ñ markHilite - This is the 'Hilite' from the 'Edit'
  357.   menu. If there is a currently hilited selection, the 
  358.   selection is unhilited, leaving the mark and the 
  359.   insertion point around the old selection. If there 
  360.   is not a selection, the region between the insertion 
  361.   point and the mark is selected.
  362. Ñ markMenuItem [-m] <menuName> <item text> <on|off> [<mark char>] - Either mark or unmark
  363.   the menu item of user menu 'menuName' that has text '<item text>'. 
  364.   Note that unless the menu is not only created, but also already
  365.   inserted, this command has no effect. 
  366. Ñ matchBrace - moves the insertion point to the 
  367.   character that matches the character after the current 
  368.   insertion point
  369. Ñ matchIt <brace char> <pos> - Return pos of matching brace. Recognizes 
  370.   parenthesis, square brackets, and curly braces.
  371. Ñ maxPos [-w <win>] - returns the number of characters in the front
  372.   window.
  373. Ñ menu [-s] [-n <name>] [-i <num] [-m] [-M <mode>] [-p <procname>] <list of menu items> - 
  374.   Defines a new menu named 'name' (if provided w/ '-n' option). The menu is not 
  375.   yet inserted into the menubar. The menu commands may be nested for 
  376.   heirarchical menus, see 'AlphaBits.tcl' for examples. Alpha massages the 
  377.   function names to make them look better in the menus. 
  378.   '-s'            Use system menu definition proc (faster).
  379.   '-n <num>'    Resource id of icon suite to use for menu title. 'ics#' 
  380.                 is the only resource that is really necessary.
  381.   '-n <name>'    Name the menu. Not necessary for submenus.
  382.   '-m'            No menu form. If not supplied, each menu item is split into 
  383.                   words at each capitalized letter.
  384.   '-p <name>'     The tcl proc named by 'name' is called w/ the menu's name
  385.                   and the item's contents when the item is chosen.
  386.   '-M <mode>'    Specifies that any bindings created by the menu are 
  387.                   specific to a given mode. This is important because mode-specific
  388.                   bindings over-ride global bindings.
  389. Ñ message <string> - prints 'string' on the status line.
  390. Ñ mkdir <name> - creates a directory (folder) named 
  391.   'name' in the current directory.
  392. Ñ mousePos - Returns list <row,col> of mouse position, if the mouse is 
  393.   currently over the active window. Otherwise, return error (catch w/ 
  394.   'catch').
  395. Ñ moveInsertionHere [-last] - move the insertion point to the 
  396.   first (or last) line displayed
  397. Ñ moveFile <fromName> <toName>
  398.   This command will move the file fromName to toName, overwriting any 
  399.   existing file. The move can not be made across volume (disk drives) 
  400.   boundaries. 
  401. Ñ moveWin [win name] <left> <top> - moves current or specified window. 
  402.   The window name can be "StatusWin".
  403. Ñ mtime <time> [long|short|abbrev]
  404.   Returns a date and time string using the Macintosh International Utilities. The 
  405.   long/short/abbrev specification corresponds to the date. These are the following 
  406.   formats:
  407.     short        3/16/92 9:20:46 PM
  408.     abbrev    Mon, Mar 16, 1992 9:20:49 PM
  409.     long        Monday, March 16, 1992 9:20:43 PM
  410.   The returned value actually is in the form of a list. To get text as 
  411.   above, run the result through 'join', as in "join [mtime [now] short]".
  412. Ñ new [-g <l> <t> <w> <h>] [-n <name>] - opens an untitled window. Can optionally 
  413.   provide left and top coordinates, plus width and height. All or none.
  414. Ñ nextLine - move insertion point to next line
  415. Ñ nextLineSelect - extend selection to the next line
  416. Ñ nextLineStart <pos> - return the position of the start 
  417.   of the next line after position 'pos'.
  418. Ñ nextSentence - go to next sentence ("fill.tcl").
  419. Ñ nextWindow - select next window
  420. Ñ now
  421.   Returns the current time as Macintosh seconds. This is the number of seconds that 
  422.   have elapsed since Midnight Jan 1, 1904.
  423. Ñ oneSpace - converts whitespace surrounding insertion
  424.   into a single space.
  425. Ñ openLine - insert a new line following the current 
  426.   one and move the insertion point to it
  427. Ñ otherPane - If window is split, select the other pane.
  428. Ñ pageBack - display prev screenful, move the
  429.   insertion point if 'moveInsertion' enabled
  430. Ñ pageForward - display next screenful, move the
  431.   insertion point if 'moveInsertion' enabled
  432. Ñ pageSetup - display the printing PageSetup dialog.
  433. Ñ paste - insert the last chunk of text created by 'cut' 
  434.   or 'copy'
  435. Ñ pointToRegister - prompts for a single character, and then assigns a 
  436.   temporary mark of that name to the current insertion point. Point can 
  437.   be jumped to via 'jumpToRegister'.
  438. Ñ posToRowCol <pos> - converts from absolute position to row, col.
  439. Ñ prefixChar - used to further modify the next keystroke 
  440.   combination, in the same manner as using the shift key 
  441.   in the next keystroke
  442. Ñ previousLine - move insertion point to the previous 
  443.   line
  444. Ñ prevLineSelect - extend selection to the previous line
  445. Ñ prevSentence - go to previous sentence ("fill.tcl").
  446. Ñ prevWindow - select previous window
  447. Ñ print - print front window
  448. Ñ processes - returns info of active processes. A list of lists, each 
  449.   sublist contain a file-name, an application signature, the application 
  450.   memory size, and the number of ticks the application has been active.
  451. Ñ prompt <prompt> <default> [<name> <menu item>*] - prompt dialog to 
  452.   the user with a prompt string and a default value. The prompt dialog can 
  453.   optionally include a popup menu specified by 'name' and the succeeding 
  454.   strings. Selection of the popup menu items inserts the item text into the 
  455.   editable dialog item. 'Prompt' returns the value of the editable item. 
  456.   If the 'Cancel' button is selected, the tcl returns an error and your 
  457.   script will be stopped unless you execute the command from 'catch'.
  458. Ñ putfile <prompt> <original>
  459.   This command will display an SFPutFile() and return the full path name of the 
  460.   selected file, or an empty string if CANCEL button was selected. Original is the 
  461.   default name displayed for the user.
  462. Ñ putScrap [<string>]+ - Concatenate strings together into the system 
  463.   scrap. The scrap can be appended to through calls of the form 'putScrap 
  464.   [getScrap] " another word"'.
  465. Ñ pwd
  466.   This command will return the current working directory, ending in a colon.
  467. Ñ quit - quits ALPHA
  468. Ñ rectMarkHilite - creates a rectangular selection 
  469.   between the mark and the insertion point.
  470. Ñ redo - redo the next action that has been undone but 
  471.   not redone
  472. Ñ regModeKeywords [options] <mode> <keyword list> - Set keywords and comments that 
  473.   Alpha can recognize to color them. Specifically, in mode <mode>, every 
  474.   keyword specified in the list is colored non-black (blue, by default). 
  475.   Comments, if specified by '-e' or '-b' below, are colored red by defualt.
  476.     -a                                Keywords will be *added* to existing mode
  477.                                     keywords. The new keywords can be a different
  478.                                     color than older keywords.
  479.     -m <c>                            Specify a magic character. Every word beginning with the 
  480.                                     magic character is a keyword.
  481.     -e <commentstr>                    Specify a string that begins comments that last to 
  482.                                     the end of the line. 
  483.     -b <comment beg> <comment end>    Specify a pair of strings that bracket a 
  484.                                     comment.
  485.     -c <color>                        Comment color.
  486.     -k <color>                        Keyword color.
  487.     -i <char>                        Specify a character to display differently.
  488.                                     Commonly used for curly braces, etc.
  489.     -I <color>                        Color of above characters.
  490.     Keywords must be less than 20 characters long.
  491. Ñ removeArrDef <var> <field> - Remove the pernament definition of 
  492.  'var(field)'. See 'addDef' and 'addArrDef'.
  493. Ñ removeDef <var> - Remove the permanent definition of 'var'.
  494. Ñ removeFile <fileName>
  495.   This command will delete the file or folder 'fileName'.
  496. Ñ removeMark [-all]|[[-n <mark name] [-w <specname>]]- allows marks to be 
  497.   removed. If no options are specified, it's interactive.
  498. Ñ removeMenu <name> - remove menu 'name' from menubar, except those 
  499.   specified by previous 'makeMenuPermanent' calls.
  500. Ñ removeTMark <name> - remove temporary mark.
  501. Ñ repeatSearchBackward - repeat search backward
  502. Ñ repeatSearchForward - repeat search forward
  503. Ñ replace - replace the current selection
  504. Ñ replaceAll - replace all further occurrences in the current file.
  505. Ñ replace&FindAgain - replace the current selection and find next 
  506.   occurrence.
  507. Ñ replaceString [<str>] - specifies replacement string. Returns current 
  508.   replacement string if no arg.
  509. Ñ replaceText <pos1> <pos2> [text]+ - replaces the text
  510.   between 'pos1' and 'pos2' with 'text', where 'text' can be any number 
  511.   of arguments. Leaves insertion at end, mark at beginning of inserted 
  512.   text. 
  513. Ñ restoreVars - restore variables to saved state, 
  514.   see 'saveVars'
  515. Ñ revert - revert the file to its last saved version
  516. Ñ rowColToPos [-w <win>] <row> <col> - converts to abosolute position.
  517.   Accepts optional -w parameter that allows window to be specified.
  518. Ñ rsearch - reverse incremental search, see 'isearch'.
  519. Ñ save - save current window
  520. Ñ saveAs [def name] - save current window with new name. Optionally takes 
  521.   a default filename. Returns complete path of saved file, if ok hit, 
  522.   otherwise TCL_ERROR returned.
  523. Ñ saveVars - save variable state, see 'restoreVars'
  524. Ñ scrollDownLine - same action as that which occurs when 
  525.   the down arrow in the vertical scrollbar is selected
  526. Ñ scrollLeftCol - same action as that which occurs when
  527.   the left arrow in the horizontal scrollbar is selected
  528. Ñ scrollRightCol - same action as that which occurs when
  529.   the right arrow in the horizontal scrollbar is 
  530.   selected
  531. Ñ scrollUpLine - same action as that which occurs when 
  532.   the up arrow in the vertical scrollbar is selected
  533. Ñ search  [options╔] <pattern> <pos> - 
  534.   -f <num>        - go forward?
  535.   -r <num>        - regular expression?
  536.   -s            - save previous search string and search flags.
  537.   -i <num>        - ignore case?
  538.   -m <num>        - match words?
  539.   -n            - failed search still returns TCL_OK, but null string.
  540.   -l <limit>    - limit on how search goes.
  541.   --             - next arg is the pattern.
  542.  
  543.   Searches for 'pattern' from position 'pos'.  If the search succeeds, a 
  544.   list of two positions will be returned.  The first is the starting position 
  545.   of the match, the second is one past the last character. If no '-n', 
  546.   TCL_ERROR returned.
  547. Ñ searchString [<str>] - allows search string to be specified. Returns 
  548.   current searchstring if no arg.
  549. Ñ select <pos1> <pos2> - selects the text between 'pos1' 
  550.   and 'pos2'.
  551. Ñ selEnd [-w <win] - returns the end of the hilited selection, or 
  552.   the current insertion point if no text is selected.
  553. Ñ sendOpenEvent [filler] <app name> <file name> - Send an open doc event to 
  554.   another currently running application. If 'filler' is noReply, then a 
  555.   reply is not requested. Otherwise, we wait for a reply and 'filler' is 
  556.   ignored. 
  557. Ñ sendToBack <winName> - Sent named window to back.
  558. Ñ setFileInfo <file> <field> [arg] - Allows some information to be set 
  559.   for files. Settable fields are 'modified', 'created', 'creator', and 
  560.   'type' all take an argument. 'resourcelen' can be set, but doesn't take 
  561.   an argument and just removes the resource fork.
  562. Ñ setFontsTabs - bring up font and tab dialog
  563. Ñ setMark - set the current mark to the insertion point
  564. Ñ setNamedMark [name disp pos end] - set named mark. If optional arguments are 
  565.   present, the mark is created without prompting user. 'disp' is the 
  566.   character position of the start of the first line to be displayed, 
  567.   while 'pos' and 'end' bracket the text to be selected.
  568. Ñ setWinInfo [-w <win>] <field> <arg> - Sets a piece of data about either 
  569.   the current or a specified window. Settable fields 'platform', 'state', 
  570.   'read-only', 'tabsize' and 'dirty'.
  571. Ñ shell - open the Tcl shell.
  572. Ñ shiftLeftRegion - shifts the current region left a tab
  573. Ñ shiftRightRegion - shift the current region right a 
  574.   tab
  575. Ñ sizeWin [win name] <width> <height> - sets size of current or specified window.
  576.   The window name can be "StatusWin", although only the width can be 
  577.   changed.
  578. Ñ sortMarks - sorts all marks of open windows, w/o 
  579.   setting the dirty flag. If the files are saved, the 
  580.   marks will be saved in alphabetical order.
  581. Ñ spacesToTabs - convert spaces in selection to tabs
  582. Ñ specToPathName [hex data] - given an FSSpec in hex form (as that 
  583.   returned by aebuild, for instance, see the definition of thinkFileName 
  584.   in :Tcl:SystemCode:think.tcl), return a complete pathname.
  585. Ñ splitWindow [percent] - toggle having window split into two panes. 
  586.   Optional arg specifies percent of window to allocate to the first pane. 
  587. Ñ startEscape - used to further modify the next 
  588.   keystroke combination, in the same manner as using the 
  589.   shift key in the next keystroke
  590. Ñ startKeyboardMacro - start recording keyboard macro
  591. Ñ statusPrompt <prompt> [<func>] - Prompt in the status window. If 'func' 
  592.   is present, call this routine at each key-press with the current 
  593.   contents of the status line and the key, insert into statusline 
  594.   whatever is returned by the func. Command-v pastes the current (<80 
  595.   char) clipboard contents on the status line.
  596. Ñ substituteVars <string> - Takes a single string and
  597.   substitutes for all variables inside it, regardless of
  598.   depth. Unfortunately, you currently need to make 'global var' 
  599.   declarations in the proc you call this for each 'var' that might need 
  600.   to be substituted in the string (see proc.tcl for examples).
  601. Ñ switchTo <appName> - Switches to application 'appName'.
  602. Ñ tab - insert a tab
  603. Ñ tabsToSpaces - convert tabs in selection to spaces.
  604. Ñ tclFileCompletion - completes the previous word as a
  605.   file is in a shell window
  606. Ñ tclResult - displays a dialog showing the result of 
  607.   the last TCL evaluation.
  608. Ñ thinkReference <-t|-l> <think reference page> - Interact with Think 
  609.   Reference 2.0. '-t' retrieves a template without leaving Alpha, '-l' 
  610.   switches to Think Reference and goes to the specified page.
  611. Ñ ticks
  612.   Returns the current TickCount. Ticks are 60ths of a seconds. TickCount is the 
  613.   number of ticks since the Macintosh was started. The command:
  614.         puts stdout [expr "[ticks] / 60"]
  615.   will print the number of seconds since the Macintosh was booted.
  616. Ñ toggleScrollbar - toggles horizontal scrollbar on frontmost window. 
  617.   Will not succeed if scrollbar scrolled.
  618. Ñ traceFunc on <funcName> <winName> Trace 'funcName', send output to 
  619.                                     'winName'. 
  620.   traceFunc off                        Turn function tracing off.
  621.   traceFunc status                    Display current tracing status.
  622. Ñ unascii  (see bindings)
  623. Ñ unbind  (see bindings)
  624. Ñ undo - undo the last action that has not been undone
  625. Ñ upcaseRegion - convert all lowercase letters to 
  626.   uppercase in the current region
  627. Ñ upcaseWord - convert all lowercase letters to 
  628.   uppercase in the current word
  629. Ñ version - Return string of the form "Alpha Version 5.31, Feb. 15, 1993".
  630. Ñ watchCursor - turns the cursor into a a watch cursor.
  631. Ñ wc <file>... - counts chars, words, lines of input files.
  632. Ñ winNames [-f] - return a TCL list of all open windows. If '-f' option 
  633.   specified, complete pathnames are returned.
  634. Ñ wrap - see the section on "Fill" routines.
  635. Ñ wrapText
  636. Ñ xtclcmd [-f filename] <cmdname> [argument_list]*
  637.   This command will load the external command cmdname and pass it the argument 
  638.   list [ cmdname argument_list... ]. External command are code resources of type 
  639.   XTCL. They may be located in the resource fork of the tickle application, or they 
  640.   may be located in a file named XTCL File in the same directory as the tickle 
  641.   application. If the optional -f filename is included, the external command will first 
  642.   be loaded from filename before the other two files.
  643.   See the appendix for a detailed description of the external tcl command interface. 
  644.   See the accompanying sources for an example of writing an XTCL.
  645. Ñ yank - insert the last piece of deleted text of less
  646.   than 1k. Consecutive deletes are concatenated.
  647.   together.
  648. Ñ zapInvisibles - removes chars < ascii 32, except for
  649.   LF's and CR's.
  650. Ñ zoom - zooms the current window
  651.